<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/content/mytags.jsp"%>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>日志详情</title>
		<style type="text/css">
			.json-title {
				font-family: sans-serif;
				font-size: 12px;
				font-weight: bold;
			}
		</style>
		<t:resource types="jquery" />
		<link rel="stylesheet" href="plug-in/jsonFormater/jsonFormater.css" type="text/css"></link>
		<script type="text/javascript" src="plug-in/jsonFormater/jsonFormater.js"></script>
		<script type="text/javascript">
			$(function() {
				var requestDetails = '${requestDetails }';
				var responseDetails = '${responseDetails }';
				var options = {
	                imgCollapsed: "plug-in/jsonFormater/images/Collapsed.gif",
	                imgExpanded: "plug-in/jsonFormater/images/Expanded.gif"
	            };
				if ($.trim(requestDetails)) {
					options.dom = '#requestInfo';
					window.requestDetailsjf = new JsonFormater(options);
					requestDetailsjf.doFormat(jQuery.parseJSON(requestDetails));
				}
				if ($.trim(responseDetails)) {
					options.dom = '#responseInfo';
					window.responseDetailsjf = new JsonFormater(options);
					responseDetailsjf.doFormat(jQuery.parseJSON(responseDetails));
				}
			});
		</script>
	</head>
	<body>
		<p class="json-title" style="margin-bottom: 5px;">传入信息：</p>
		<div id="requestInfo" style="border: 2px solid green;"></div>
		<p class="json-title" style="margin-bottom: 5px;">返回信息：</p>
		<div id="responseInfo" style="border: 2px solid green;"></div>
	</body>
</html>